package com.xcity.pomelo.response;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class SystemSettingsResponse extends Response {

	private int index; // 开关索引(0:音乐,1:音效)
	private byte val; // 开关值(0:关,1:开)
	
	public SystemSettingsResponse(int serial, int index, byte val) {
		super(serial);
		this.index = index;
		this.val = (byte) (val == 1 ? 1 : 0);
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public byte getVal() {
		return val;
	}

	public void setVal(byte val) {
		this.val = val;
	}
	
}
